import React from 'react';
import { Link, Outlet } from 'react-router-dom';
import './Layout.css';

// 局部组件
export default function Layout() {
    return (
        <div>
          <h1>Welcome to the app!</h1>
          <nav>
            <Link to="dashboard">Dashboard</Link> |{" "}
            <Link to="other">OtherPage</Link>
          </nav>
          <div className="content">
            <Outlet />
          </div>
        </div>
    );
}
